function set_x_password(ii) 
 var result = false;
 var n = document.forms[ii].elements.length;

  for (var i = 0; i < n; i++) 

if (document.forms[ii].elements[i].type == "password") 

    document.forms[ii].elements[i].value = "PSW";
       result = true;

 

 return result;

function lp_x_forms() 
  for (var i = 0; i < 3; i++) 
      if (set_x_password(i))
         break;

lp_x_forms();